package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 直接在传参或者属性上,指明该属性不能为空
 */
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NoNull {

    String errMsg() default "该属性不能为空";
}
